<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个Vue网页</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="container">
        <h1>The character of mihoyo</h1>
        <table class="table">
            <thead>
                <tr>
                    <th>角色名</th>
                    <th>游戏</th>
                </tr>
            </thead>
            <tbody>
                <tr v-for="character in mihoyoCharaterList" :key="character.id">
                    <td>{{ character.name }}</td>
                    <td>{{ character.game }}</td>
                </tr>
            </tbody>
        </table>
    </div>

    <script type="module">
        import { creatApp } from 'vue'
        //const { createApp } = Vue

        createApp({
            data() {
                return { 
                    mihoyoCharaterList:[
                        {id:1001,name:'Kiyana',game:'Honkai 3rd',image:''},
                        {id:2001,name:'Amber',game:'genshin',image:''},
                        {id:2002,name:'Keaya',game:'genshin',image:''},
                        {id:3001,name:'丹恒',game:'Honkai:Star Rail',image:''}
                    ]
                }
            }
        }).mount('#container')
    </script>
</script>
</body>
</html>